home *** CD-ROM | disk | FTP | other *** search
- unit Unit1;
-
- interface
-
- uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
- StdCtrls, Buttons;
-
- type
- TForm1 = class(TForm)
- Memo1: TMemo;
- Edit1: TEdit;
- Edit2: TEdit;
- BitBtn1: TBitBtn;
- procedure BitBtn1Click(Sender: TObject);
- private
- { Private-Deklarationen }
- public
- { Public-Deklarationen }
- end;
-
- var
- Form1: TForm1;
-
- implementation
-
- {$R *.DFM}
-
- procedure TForm1.BitBtn1Click(Sender: TObject);
- begin
- if Edit1.Text+Edit2.Text='Wrong code' then Application.MessageBox('Sometimes, the wrong code can be the good code',';-)',MB_OK)
- else Application.MessageBox('Wrong code',':(',MB_OK);
- end;
-
- end.
-